CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.invoice_config_network(
id                                                 bigint                         COMMENT '主键ID',
config_id                                          bigint                         COMMENT '配置ID',
network_id                                         bigint                         COMMENT '开票网点ID',
network_code                                       String                         COMMENT '开票网点编号',
network_name                                       String                         COMMENT '开票网点名称',
sub_network_id                                     bigint                         COMMENT '可开票下级网点',
sub_network_code                                   String                         COMMENT '可开票下级网点',
sub_network_name                                   String                         COMMENT '可开票下级网点',
create_time                                        timestamp                      COMMENT '创建时间',
update_time                                        timestamp                      COMMENT '更新时间'
)
COMMENT '开票资质配置网点'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/invoice_config_network'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);